<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var i=100;
			alert(i);
			alert(globalThis.i);
			
			function second(){
				var i=5;
				for(let j=0;j<globalThis.i;j++){
					document.write(j+"<br/>");
				}
			}
		</script>
	</head>
	<body onload="second()">
	</body>
</html>